package com.xiaoma.kent.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dexcoder.assistant.persistence.JdbcDao;
import com.xiaoma.kent.entity.User;

@Service
public class UserService {

    @Autowired
    private JdbcDao jdbcDao;
    
    public void save(User user) {
        jdbcDao.save(user);
    }
    
    public List<User> findUsers(User entity) {
        return jdbcDao.queryList(entity);
    }
    
}
